//
//  GTBottonView.swift
//  swiftWEIbo
//
//  Created by mac－gt on 15/11/28.
//  Copyright © 2015年 mac－gt. All rights reserved.
//

import UIKit

class GTBottonView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor=UIColor(white: 0.98, alpha: 1)
        setUp()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    private lazy var forwordButton: UIButton=UIButton(title: "转发", fontSize: 12, textColor: UIColor.darkGrayColor(), imageName: "timeline_icon_retweet")
    private lazy var contentButton: UIButton=UIButton(title: "评论", fontSize: 12, textColor: UIColor.darkGrayColor(), imageName: "timeline_icon_comment")
    private lazy var likeButton:UIButton=UIButton(title: "赞", fontSize: 12, textColor: UIColor.darkGrayColor(), imageName: "timeline_icon_unlike")
    private lazy var s1ImageView:UIImageView=UIImageView(image: UIImage(named: "timeline_card_bottom_line_highlighted"))
    
    private lazy var s2ImageView:UIImageView=UIImageView(image: UIImage(named: "timeline_card_bottom_line_highlighted"))
    
    func setUp(){
        self.addSubview(forwordButton)
        self.addSubview(contentButton)
        self.addSubview(likeButton)
        self.addSubview(s1ImageView)
        self.addSubview(s2ImageView)
        ff_HorizontalTile([forwordButton,contentButton,likeButton], insets: UIEdgeInsetsZero)
        s1ImageView.ff_AlignHorizontal(type: ff_AlignType.CenterRight, referView: forwordButton, size: nil)
        s2ImageView.ff_AlignHorizontal(type: ff_AlignType.CenterRight, referView: contentButton, size: nil)
        
    }
}
